package com.sc.commons.base.utils.asser;

import com.sc.commons.base.utils.except.ScException;

/**
 * @author
 */
public class AssertUtils {

    public static void isNull(Object o, String message){
        if(o == null){
            throw new ScException(454, message);
        }
    }

    public static void eq(Object o1, Object o2, String message){
        if(!(o1 == null && o2 == null)){
            throw new ScException(454, message);
        }
        if(!o1.equals(o2)){
            throw new ScException(454, message);
        }
    }
}
